home *** CD-ROM | disk | FTP | other *** search
/ Zoom 2 / Zoom - Release 2 (1996)(Active Software)[!].iso / programming / amos / amossible / structures / subrout.bak / subrout.amosSourceCode
Encoding:
AMOS Source Code  |  1980-05-17  |  717 b   |  17 lines

  1. '*********************Err...I can't think of a Title.....********************* 
  2. Rem Although the loops we have shown are very useful and often essential,you 
  3. Rem can't always rely on them in more complex programs.For a more detailed 
  4. Rem explanation of subroutines,look at the on disk document files. 
  5. Rem Where would you need to use a subroutine?Well,imagine that in a game you 
  6. Rem had made,you had a main program loop,and had some `special things for the
  7. Rem computer to do when the player had won-But you couldn't include these in 
  8. Rem the main bit because you only want them to occur at certain points.
  9. MAIN:
  10. Print "The Main routine!"
  11. Wait 30
  12. Gosub SUBBIT
  13. Gosub MAIN
  14. SUBBIT:
  15. Print "The subroutine"
  16. Wait 10
  17. Return